package com.xzq.erp.service;

import com.xzq.erp.domain.dto.CustomerDTO;
import com.xzq.erp.domain.dto.PageDTO;
import com.xzq.erp.domain.po.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xzq.erp.domain.query.CustomerPageQuery;
import com.xzq.erp.domain.vo.CustomerVO;

import java.util.List;

/**
 * <p>
 * 客户信息表 服务类
 * </p>
 *
 * @author xzq
 * @since 2025-05-13
 */
public interface ICustomerService extends IService<Customer> {

    /**
     * 获取客户列表
     * @return
     */
    PageDTO<CustomerVO> getCustomerList(CustomerPageQuery query);

    /**
     * 添加客户
     * @param customerDTO
     * @return
     */
    void addCustomer(CustomerDTO customerDTO);

    /**
     * 修改客户
     * @param customerDTO
     */
    void updateCustomer(CustomerDTO customerDTO);

    /**
     * 获取所有客户列表（用于导出）
     */
    List<CustomerVO> getAllCustomers();
}
